package com.yantong.service;

import com.yantong.utils.PageUtils;
import com.yantong.pojo.Achieve;
import com.yantong.pojo.AchieveFlow;

import java.util.Date;
import java.util.List;

/**
 * 业绩服务
 * @author kanghaixin
 * @date 2018/9/20.12:05
 */
public interface AchieveFlowService {
    /**
     * 业绩流水列表
     * @param start
     * @param end
     * @param name
     * @param centreId
     * @param offset
     * @param limit
     * @return
     */
    PageUtils<AchieveFlow> listAchieveFlows(Long centreId, Long teamId, Date start, Date end, String name, int offset, int limit);

    /**
     * 业绩流水列表  不分页
     * @param centreId
     * @param start
     * @param end
     * @param name
     * @return
     */
    List<AchieveFlow> listAchieveFlows(Long centreId, Long teamId, Date start, Date end, String name);

    /**
     * 获取门店指定日期的业绩流水
     * @param mid
     * @param date
     * @return
     */
    AchieveFlow getByMidAndDate(Long mid, Date date);

    /**
     * 业绩统计，按月份统计
     * @param centreId
     * @param pmid
     * @param start
     * @param end
     * @param offset
     * @param limit
     * @return
     */
    List<Achieve> countAchieve(Long centreId, Long pmid, Date start, Date end, int offset, int limit);
    
    /**
     * 查询业绩流水 
     * @param achieveFlow
     * @param offset
     * @param limit
     * @return
     */
    PageUtils<AchieveFlow> listAchieveFlowsToMid(AchieveFlow achieveFlow, int offset, int limit);



}
